package com.ssy.lingxi.order.model.vo.basic.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 修改交易流程规则状态接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-24
 */
public class OrderProcessUpdateStatusVO implements Serializable {
    private static final long serialVersionUID = -337512440562262140L;

    /**
     * 流程规则配置Id
     */
    @NotNull(message = "流程规则配置Id要大于0")
    @Positive(message = "流程规则配置Id要大于0")
    private Long processId;

    /**
     * 状态，0-停用，1-启用
     */
    @NotNull(message = "状态值枚举：0-停用，1-启用")
    @Min(value = 0, message = "状态值枚举：0-停用，1-启用")
    @Max(value = 1, message = "状态值枚举：0-停用，1-启用")
    private Integer status;

    public Long getProcessId() {
        return processId;
    }

    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
